import lejos.nxt.Motor;
import lejos.nxt.SensorPort;
import lejos.nxt.TouchSensor;
import lejos.nxt.UltrasonicSensor;


public class Touch
{

	TouchSensor ts=new TouchSensor(SensorPort.S1);
	public Touch()
	{
		Motor.A.setSpeed(360);
		Motor.B.setSpeed(360);
		Motor.A.forward();
		Motor.B.forward();
		while(ts.isPressed())
		{
			Motor.A.backward();
			Motor.B.backward();
		}
	}
	
}